<template>
  <div>
    <div class="column_box" >
      <div class="column_img">
        <img  style="width:100%;height:100%" :src="product.thumbnail" />
      </div>
      <div class="column_product">
        <!-- <div class="column_product_header">
            <div class="column_product_header_img">
               <image  style="width:100%;height:100%" src="{{product.logo}}"></image>
            </div>
            <span class="column_product_header_title">{{product.brand}}</span>
         </div> -->
        <div>
          <span class="column_product_title">{{product.name}}</span>
          <span class="column_product_subtitle">{{product.subTitle}}</span>
        </div>
        <div>
          <div class="column_product_price_box" v-if="!concise">
            <span class="column_product_price_newTitle">¥{{product.price}}</span>
          </div>
          <div class="column_product_price_concise_box" v-if="concise">
            <span class="column_product_price_newTitle">¥{{product.price}}</span>
          </div>
          <!-- <div class="column_product_price_box">
            <span class="column_product_price_newTitle">¥88</span>
         </div> -->
          <!-- <div class="column_coupon">
            <div class="column_coupon_one">
              <span class="column_coupon_one_title">活动</span>
            </div>
          </div> -->
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'column',
    props:['product','concise'],
    data(){
      return{}

    }
  }
</script>

<style scoped>
  .column_box {
    width: 165px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
  }

  .column_img {
    width: 165px;
    height: 180px;
    overflow: hidden;
  }

  .column_product{
    padding: 10px;
    box-sizing: border-box;
    background-color: white;
    /*height: 110px;*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .column_product_header {
    display: flex;
    flex-direction: row;
  }

  .column_product_header_img {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    margin-bottom: 5px;
  }

  .column_product_header_title {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
  }

  .column_product_title {
    width: 155px;
    display: block;
    font-size: 14px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .column_product_price_box {
    display: flex;
    flex-direction: row;
    margin-top: 5px;
    align-items: flex-end;
  }
.column_product_price_concise_box{
  display: flex;
  flex-direction: row;
  margin-top: 10px;
  align-items: flex-end;
  justify-content: flex-end;
}
  .column_product_price_newTitle {
    font-size: 14px;
    font-weight: bold;
    color: rgba(231, 91, 83, 1);
    margin-right: 5px;
  }
  .column_product_price_oldTitle{
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    text-decoration:line-through;
  }
  .column_coupon{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 5px;
  }
  .column_coupon_one{
    width: 50px;
    height: 16px;
    border-radius: 3px;
    /* background: linear-gradient(0deg, rgba(236, 95, 88, 1), rgba(255, 230, 230, 1)); */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(236, 95, 88, 1);
  }
  .column_coupon_one_title{
    font-size: 10px;
    color: rgba(236, 95, 88, 1);
    line-height: 32px;
    height: 16px;
    display: block
  }
  .column_product_subtitle{
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5)
  }
</style>
